﻿<!DOCTYPE HTML>
<html>
<head>
	<meta charset="utf-8"/>
	<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=yes">
	<title>Active respond</title>
	<script src="js/jquery-1.7.1.min.js"></script>
	<link rel="stylesheet" href="css/jquery.mobile-1.4.3.min.css">
	<script src="js/jquery.mobile-1.4.3.min.js"></script>
	<link rel="stylesheet" href="js/main.css">
</head>
<body>
	<div data-role="page" id='home'>
		<script src="js/active_respond.js"></script>
		<div data-role="header" data-position="fixed">
			<h1>主動回應</h1>
		</div>
		<div data-role="content">
			<form method='post' action='http://163.15.192.205/vany/index.php/gcm/sendAndroidMsg' target="id_iframe">
				<input type='text' id='title' name='title' placeholder="請輸入標題"></input><br/>
				<textarea id='content' name="message" placeholder="請輸入內容"></textarea><br/>
				<input type='submit' class='btn' value='send'></input>
			</form>
			<iframe id="id_iframe" name="id_iframe" style="display: none;" frameborder="0" onload="getval()"></iframe>	
			
			<div data-role="popup" id="success" data-position-to="window" data-overlay-theme="a">
				<h3>訊息傳送成功</h3>		
			</div>	
			<div data-role="popup" id="error" data-position-to="window" data-overlay-theme="a">
				<h3>訊息傳送失敗</h3>		
			</div>				
		</div>		
		<div data-role="footer" data-position="fixed">
			<h1>Active respond</h1>
		</div>
	</div>	
</body>
</html>